package cn.stylefeng.guns.modular.kh.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 提总分拣任务
 * </p>
 *
 * @author zzh
 * @since 2025-10-23
 */
@TableName("kh_tz_storage_order_item")
public class KhTzStorageOrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 提总分拣单ID
     */
    @TableField("tz_storage_order_id")
    private Long tzStorageOrderId;

    /**
     * 单号
     */
    @TableField("order_number")
    private String orderNumber;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 商品编号
     */
    @TableField("goods_number")
    private String goodsNumber;

    /**
     * 商品码
     */
    @TableField("goods_pcode69")
    private String goodsPcode69;

    /**
     * 规格
     */
    @TableField("goods_specs")
    private String goodsSpecs;

    /**
     * 单位
     */
    @TableField("unit")
    private String unit;

    /**
     * 换算率
     */
    @TableField("rate")
    private BigDecimal rate;

    /**
     * 数量
     */
    @TableField("ps_num")
    private BigDecimal psNum;

    /**
     * 是否拆零
     */
    @TableField("dismantling_parts")
    private String dismantlingParts;

    /**
     * 基本单位
     */
    @TableField("jiben_unit")
    private String jibenUnit;

    /**
     * 基本数量
     */
    @TableField("jiben_num")
    private BigDecimal jibenNum;

    /**
     * 商品码2
     */
    @TableField("goods_xcode69")
    private String goodsXcode69;

    /**
     * 商品码3
     */
    @TableField("goods_hcode69")
    private String goodsHcode69;

    /**
     * 库存ID
     */
    @TableField("stock_id")
    private Long stockId;

    /**
     * 库位编号
     */
    @TableField("position_number")
    private String positionNumber;

    /**
     * 拣货顺序
     */
    @TableField("position_pickingorder")
    private Integer positionPickingorder;

    /**
     * 完成时间
     */
    @TableField("completed_time")
    private Date completedTime;

    /**
     * 分拣员
     */
    @TableField("storage_user_name")
    private String storageUserName;

    /**
     * 分拣状态
     */
    @TableField("storage_state")
    private String storageState;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTzStorageOrderId() {
        return tzStorageOrderId;
    }

    public void setTzStorageOrderId(Long tzStorageOrderId) {
        this.tzStorageOrderId = tzStorageOrderId;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(String goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public String getGoodsPcode69() {
        return goodsPcode69;
    }

    public void setGoodsPcode69(String goodsPcode69) {
        this.goodsPcode69 = goodsPcode69;
    }

    public String getGoodsSpecs() {
        return goodsSpecs;
    }

    public void setGoodsSpecs(String goodsSpecs) {
        this.goodsSpecs = goodsSpecs;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public BigDecimal getRate() {
        return rate;
    }

    public void setRate(BigDecimal rate) {
        this.rate = rate;
    }

    public BigDecimal getPsNum() {
        return psNum;
    }

    public void setPsNum(BigDecimal psNum) {
        this.psNum = psNum;
    }

    public String getDismantlingParts() {
        return dismantlingParts;
    }

    public void setDismantlingParts(String dismantlingParts) {
        this.dismantlingParts = dismantlingParts;
    }

    public String getJibenUnit() {
        return jibenUnit;
    }

    public void setJibenUnit(String jibenUnit) {
        this.jibenUnit = jibenUnit;
    }

    public BigDecimal getJibenNum() {
        return jibenNum;
    }

    public void setJibenNum(BigDecimal jibenNum) {
        this.jibenNum = jibenNum;
    }

    public String getGoodsXcode69() {
        return goodsXcode69;
    }

    public void setGoodsXcode69(String goodsXcode69) {
        this.goodsXcode69 = goodsXcode69;
    }

    public String getGoodsHcode69() {
        return goodsHcode69;
    }

    public void setGoodsHcode69(String goodsHcode69) {
        this.goodsHcode69 = goodsHcode69;
    }

    public Long getStockId() {
        return stockId;
    }

    public void setStockId(Long stockId) {
        this.stockId = stockId;
    }

    public String getPositionNumber() {
        return positionNumber;
    }

    public void setPositionNumber(String positionNumber) {
        this.positionNumber = positionNumber;
    }

    public Integer getPositionPickingorder() {
        return positionPickingorder;
    }

    public void setPositionPickingorder(Integer positionPickingorder) {
        this.positionPickingorder = positionPickingorder;
    }

    public Date getCompletedTime() {
        return completedTime;
    }

    public void setCompletedTime(Date completedTime) {
        this.completedTime = completedTime;
    }

    public String getStorageUserName() {
        return storageUserName;
    }

    public void setStorageUserName(String storageUserName) {
        this.storageUserName = storageUserName;
    }

    public String getStorageState() {
        return storageState;
    }

    public void setStorageState(String storageState) {
        this.storageState = storageState;
    }

    @Override
    public String toString() {
        return "KhTzStorageOrderItem{" +
        "id=" + id +
        ", tzStorageOrderId=" + tzStorageOrderId +
        ", orderNumber=" + orderNumber +
        ", goodsId=" + goodsId +
        ", goodsName=" + goodsName +
        ", goodsNumber=" + goodsNumber +
        ", goodsPcode69=" + goodsPcode69 +
        ", goodsSpecs=" + goodsSpecs +
        ", unit=" + unit +
        ", rate=" + rate +
        ", psNum=" + psNum +
        ", dismantlingParts=" + dismantlingParts +
        ", jibenUnit=" + jibenUnit +
        ", jibenNum=" + jibenNum +
        ", goodsXcode69=" + goodsXcode69 +
        ", goodsHcode69=" + goodsHcode69 +
        ", stockId=" + stockId +
        ", positionNumber=" + positionNumber +
        ", positionPickingorder=" + positionPickingorder +
        ", completedTime=" + completedTime +
        ", storageUserName=" + storageUserName +
        ", storageState=" + storageState +
        "}";
    }
}
